<?php
	$file = $_FILES;
	$path = dirname(__FILE__).'/upload/';
	$name = $file['files']['name'];
	move_uploaded_file($file['files']['tmp_name'],$path.$name);
	$file['files']['status'] = 1;
	/*exit(json_encode($file['files']));
	exit(json_encode($_POST));*/
	exit(json_encode(array($file['files'],$_POST)));
	
?>